<h2><%= t("document.edit")%></h2>

<% form_for(@document.becomes(Document)) do |f| %>
  <%= f.error_messages %>
  <%= render :partial=>'form', :locals=>{:f=>f} %>
  <p>
    <%= f.submit t("update") %>
  </p>
<% end %>
